package top.juntower.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 历史记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("历史记录")
public class HistoryDto {
    @ApiModelProperty("历史记录Id")
    private Integer hId;
    @ApiModelProperty("用户Id")
    private Integer userId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty("浏览时间")
    private Date hdateTime;
    @ApiModelProperty("食物Id")
    private Integer fId;
    @ApiModelProperty("食物名字")
    private String fName;
}
